
<html>
<head>
<title>${titie}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<!-- <script type="text/javascript" src="js/inedx.js"></script> -->
<script type="text/javascript" src="assets/layer/layer.js""></script>
<script type="text/javascript"src="bootstrap-3.3.7/js/bootstrap.min.js"></script>
<link type="text/css" rel="stylesheet" href="bootstrap-3.3.7/css/bootstrap.min.css">
<link    href="css/login.css" rel="stylesheet" type="text/css" />
<link   rel="shortcut icon" href="img/bitbug_favicon.ico"type="image/x-icon" />
<body>
	<div id="all">
		<input type="hidden" flag="${flag}" id="info" />
		<div class="title" id="title">${titie}
		 	<br/>
			<h5> 
				<span id="version" >${version}</span>   
			</h5>
		</div>
		<br />
		<div id="loginarea">
			<form class="form-horizontal" action="user/login" method="post" id="form" >
				<div class="form-group">
					<label class="col-sm-2 control-label" for="name">姓名</label>
					<div class="col-sm-10">
						<input placeholder="请输入姓名" class="form-control" id="username" name="username" type="text" onchange="$('#name').css({'border-color':'#ccc','focus':'blue'})">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="pwd">密码</label>
					<div class="col-sm-10">
						<input placeholder="密码为六位数字" class="form-control" id="password" name="password" type="password" onchange="$('#pwd').css({'border-color':'#ccc','focus':'blue'})">
					</div>
				</div>
				<div class="form-group" id="login">
<!-- 					<input class="btn btn-primary" id="loginbtn" type="button" value="登录" /> -->
					<button type="submit" class="btn btn-primary form-control" id="loginbtn">登录</button>
				</div>
			</form>
			<div>
				<img class="img-responsive" src="img/logo.png" />
			</div>
		</div>
	</div>
	<script type="text/javascript">
	
		$(function(){
// 			var curPath=window.document.location.href;
			//请求版本号
			$.ajax({
				type:"GET",
				url:"version/getVersion",
				async:true,
				dateType:"json",
				success:function(data){
					var version=window.document.getElementById('version');
// 					layer.alert(data)
		            version.innerText=data
				},
				error:function(){
					alert('服务器错误')
				}
				
			})
		})
	</script>
</body>
</html>